package org.itboys.product.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 一个店铺下的有效商品价格最小值
 * @author liangchong
 */
@Entity(value = "ProductMinPrice", noClassnameStored = true)
public class ProductMinPrice extends BaseLongIdEntity{

	private static final long serialVersionUID = -645928686011670694L;

    @Indexed(unique = true)
	private long sellerId;//店铺

    private int minPrice;

    public long getSellerId() {
        return sellerId;
    }

    public void setSellerId(long sellerId) {
        this.sellerId = sellerId;
    }

    public int getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(int minPrice) {
        this.minPrice = minPrice;
    }
}
